package com.sxp.dao;

import com.sxp.bean.Book;

import java.util.List;

public interface BookDao {
    List<Book> listByName(String name);

    Integer save(Book book);

    List<Book> list(int limit);

    Book getById(int id);

    void update(Book book);

    List<Book> listByClickCountDesc(int limit);

    void deleteById(int id);
}
